<template>
  <FanFanHeader v-if="isHeader" />
  <router-view></router-view>
  <FanFanFooter v-if="isFooter" />
</template>
<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter()
const isHeader = ref(true)
const isFooter = ref(true)
router.beforeEach((to, form, next) => {
  isHeader.value = to.meta.isHeader
  isFooter.value = to.meta.isFooter
  next()
});
</script>
<style scoped></style>
